package com.nengchuan.eic.nceconomy.entity.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;

@Data
public class ExcelUploadDTO {

    @ApiModelProperty(value="分类Code",example = "BUDGET_ESTIMATE")
    @Length(max = 128)
    @NotNull(message = "categoryCode not null")
    private String categoryCode;

    @ApiModelProperty(value="工程Code",example = "POWER_TRANSFORMATION")
    @Length(max = 128)
    @NotNull(message = "projectCode not null")
    private String projectCode;

    @ApiModelProperty(value = "父工程ID",example = "1")
    @Min(value = 1,message = "pid不在给定范围")
    @NotNull(message = "pid not null")
    private Long pid;

    @ApiModelProperty(value = "工程ID",example = "1")
    private Long projectId;

    @ApiModelProperty(value = "审核状态",example = "1")
    @Max(value = 2,message = "version不在给定范围")
    @Min(value = 1,message = "version不在给定范围")
    @NotNull(message = "version not null")
    private Integer version;
}
